﻿using System;
using System.Runtime.InteropServices;
using Ast.Core.WinApi;

namespace Ast.Core.Services.ObjectDefinitions
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public struct ObjectType
    {
        public Structure.ListEntry TypeList;

        public Structure.UnicodeString Name;

        public IntPtr DefaultObject;

        public byte Index;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        private byte[] _;

        public int TotalNumberOfObjects;

        public int TotalNumberOfHandles;
    }
}